import request from '@/utils/request'

export default {
	// 承包管理列表
	getContractorData(query) {
		return request({
			url: '/agriculture/contractor/list',
			method: 'get',
			params: query,
		})
	},
	// 导入
	importContractorData(data) {
		return request({
			url: '/agriculture/contractor/import',
			method: 'post',
			headers: {
				'Content-Type': 'multipart/form-data',
			},
			data: data,
		})
	},

	// 承包管理添加
	addContractor(data) {
		return request({
			url: '/agriculture/contractor/add',
			method: 'post',
			data: data,
		})
	},

	// 详情
	detailContractor(data) {
		return request({
			url: '/agriculture/contractor/detail',
			method: 'post',
			data: data,
		})
	},

	// 修改
	updateContractor(data) {
		return request({
			url: '/agriculture/contractor/update',
			method: 'post',
			data: data,
		})
	},

	// 删除
	deleteContractor(data) {
		return request({
			url: '/agriculture/contractor/delete',
			method: 'post',
			data: data,
		})
	},
}
